package lucius.work.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;


import lucius.work.dao.BookDao;
import lucius.work.entity.Book;
import lucius.work.service.*;

@Service("bookService")
public class BookServiceImpl extends BaseService<Book> implements BookService{

	@Resource(name="bookDao")
	BookDao bookDao;

	@Override
	public List<book> books(int page, int pageSize) {
		return bookDao.findByPage(page, pageSize);
	}

	@Override
	public int totalPage(int pageSize) {
		return bookDao.findTotalPage(pageSize);
	}
	
}
